//
//  ADJgSDKNativeAdContainer.h
//  AnyThinkSDKDemo
//
//  Created by 刘娟 on 2024/9/25.
//  Copyright © 2024 抽筋的灯. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <ADJgSDK/ADJgSDKNativeAd.h>

@class ADJgSDKNativeAdContainer;
NS_ASSUME_NONNULL_BEGIN

@protocol ADJgSDKNativeAdContainerDelegate <NSObject>
/**
 *  插屏广告素材加载成功
 */
- (void)jgsdkContainer_jgsdkNativeAdDidLoad:(ADJgSDKNativeAdContainer *)NativeAd withPrice:(NSInteger)bidPrice;

/**
 *  插屏广告请求失败
 */
- (void)jgsdkContainer_jgsdkNativeAdFailLoadError:(NSError *)error;

@end

@interface ADJgSDKNativeAdContainer : NSObject

@property (nonatomic, weak)id<ADJgSDKNativeAdContainerDelegate> containerDelegate;

@property (nonatomic, weak)id<ADJgSDKNativeAdDelegate> delegate;

@property (nonatomic, weak)UIViewController *controller;

@property (nonatomic, strong)NSMutableArray<NSDictionary*>* assets;


/// 初始化容器
- (instancetype)initPosId:(NSString *)posId delegate:(id<ADJgSDKNativeAdDelegate>)delegate size:(CGSize)size;

/// 加载
- (void)loadNativeAdWithCount:(int)count;

/// 销毁
- (void)close;

///获取竞价价格
- (NSInteger)getBidPrice;

///获取底价
- (NSInteger)getBidFloor;

@end


NS_ASSUME_NONNULL_END
